import cookie from 'react-cookie';

export function saveCookie(name, value) {
	var expires = new Date();
	expires.setTime(expires.getTime() + 30 * 24 * 60 * 60 * 1000); // 30天过期

	cookie.save(name, value, { 
      path: '/',
      expires: expires
    });
}

export function getCookie(name) {
	return cookie.load(name)
}